<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>提交问题</title>
</head>
<body>
	<h1>提问</h1>
	<form method="post">
		<table width="100%" border="1">
			<tr>
			<td>分类</td>
				<td>
					<select name="category_id">
						{{foreach name=k item=v from=$category}}
							<option value="{{$v.id}}">
								{{$v.cname}}
							</option>
						{{/foreach}}
					</select>
				</td>
			</tr>
			<tr>
				<td>标题</td>
				<td>
					<input type="text" name="title">
				</td>
			</tr>
			<tr>
				<td>内容</td>
				<td>
					<textarea name="content" id="" cols="30" rows="10"></textarea>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<input type="submit" value="发表">
				</td>
			</tr>
		</table>
	</form>
</body>
</html>